<div class="content">
    <div class="tl-img">
        <?php
        $img = 'public/upload/curso/'.$this->row->CUR_ID.'_iconp.*';
        foreach (glob($img) as $src) {
          $img = $src;
        }
        if(file_exists($img)){ ?>
            <img src="<?php echo $this->urlbase.'/'.$img;?>" />
        <?php } else { ?>
            <a class="<?php echo $this->cat_css?>"></a>
        <?php } ?>
    </div>
    <h1><?php echo $this->categoria.' - '.$this->row->CUR_NOM; ?></h1>
    <div class="content-elm">
        <div class="texto-apr-curso">
            <p><?php  echo $this->row->CUR_DSC; ?></p>           
        </div>    
        <div class="img-apr-curso">
            <ul class="info-curso">
                <?php if(strlen($this->row->CUR_DUR) > 0){ ?><li><span class="duracao"></span> Carga Horária: <?php echo $this->row->CUR_DUR.'h '; if($this->row->CUR_DURMIN > 0) echo $this->row->CUR_DURMIN.'min'; ?></li><?php } ?>
                <?php if(strlen($this->row->CUR_SML) > 0){ ?><li><span class="simulador"></span>Simulado: <?php echo $this->row->CUR_SML; ?></li><?php } ?>
                <?php if(strlen($this->row->CUR_MAT) > 0){ ?><li><span class="material"></span>Material: <?php echo $this->row->CUR_MAT; ?></li><?php } ?>
                <?php if($this->row->CUR_VLR >= 0){ ?>
                <li><span class="valor"></span>Valor do Curso: R$<?php echo tools::float_to_money($this->row->CUR_VLR); ?>
                    <br><a class="lk-lr" href="<?php echo $this->urlbase.'/formas'; ?>">Conferir formas de pagamento</a>
                </li>
                <?php } ?>
                <?php if(strlen($this->row->CUR_PROF) > 0){ ?>
                <li><span class="professor"></span>Professor: <?php echo $this->row->CUR_PROF; ?>
                    <?php /* <br><a class="lk-lr" href="<?php echo  $this->urlbase.'/conheca'; ?>">Saiba mais sobre o professor</a> */ ?>
                </li>
                <?php } ?>
                
                <?php if($this->row->CUR_QTDDIAACE > 0){ ?><li><span class="validade"></span>Período de Acesso: <?php echo $this->row->CUR_QTDDIAACE.' dias'; ?></li><?php } ?>
                <?php if($this->row->CUR_PROM > 0 && strtotime($this->row->CUR_PROMDAT) >= strtotime(date('Y-m-d'))){ ?><li><span class="promocao"></span>Promoção: <?php echo $this->row->CUR_PROM; ?></li><?php } ?>
                
            </ul>
            
            <a href="<?php echo $this->urlbase.'/cursos'; ?>" class="btn-vlt">Voltar à página dos cursos</a>
            <a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'comprar', 'id' => $this->row->CUR_ID)); ?>" class="btn-compra">COMPRAR</a>
        </div>    
    </div>
    
    <?php //echo $this->partial('rodape_page.phtml', array()); ?>
    
</div>